//
//  BYEdgeLabel.m
//  ZhiHuiLiJiang
//
//  Created by biyu6 on 2019/1/9.
//  Copyright © 2019 WisdomLijiang. All rights reserved.
//UILabel的内边距

#import "BYEdgeLabel.h"

@implementation BYEdgeLabel
- (instancetype)init {
    if (self = [super init]) {
        _textInsets = UIEdgeInsetsZero;
    }
    return self;
}
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        _textInsets = UIEdgeInsetsZero;
    }
    return self;
}
- (void)drawTextInRect:(CGRect)rect {
    [super drawTextInRect:UIEdgeInsetsInsetRect(rect, _textInsets)];
}


@end
